<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>{$pagetitle}</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="/static/admin/layui/css/layui.css" media="all">
  <link rel="stylesheet" href="/static/admin/style/global.css" media="all">
  <style>
	  .layui-form-label{ width:8%;}
	  .layui-form-item .layui-input-inline{ width:80%}
  </style>
</head>
<body>
<div class="layui-fluid" style="padding: 15px;">
<form action="{:url()}" class="layui-form" method="post" lay-filter="component-form-element" onsubmit="return save_form(this)">
	<input type="hidden" name="pubid" value="{$pubid}">
	<input type="hidden" name="catid" value="{$cat.catid}">
	<input type="hidden" id="action_type" name="action_type" value="submit">
	<div class="layui-row layui-col-space15">
		
      <div class="layui-col-md6" style="width:80%;">
		  
        <div class="layui-card">
			<div class="layui-card-body">
				<div class="layui-tab layui-tab-card">
					<ul class="layui-tab-title"><li class="layui-this">{$pagetitle}</li></ul>
					<div class="layui-tab-content">
					  <div class="layui-tab-item layui-show"><?=think\facade\View::fetch($ModelTemp)?></div>
					</div>
				</div>
			</div>
		</div>		  
      </div>
	  
      <div class="layui-col-md6" style="width: 20%;">

        <div class="layui-card" style="padding: 15px 0px;">
			<div class="layui-card-header">SEO标题</div>
			<div class="layui-card-body layui-row layui-col-space10">
				<div class="layui-col-md12">
				  <input type="text" name='pagetitle' placeholder="不填写默认调用标题" autocomplete="off" class="layui-input">
				</div>
			</div>		
			
			<div class="layui-card-header">关键词</div>
			<div class="layui-card-body layui-row layui-col-space10">
				<div class="layui-col-md12">
				  <input type="text" name='keywords' placeholder="多个用半角的逗号隔开" autocomplete="off" class="layui-input">
				</div>
			</div>				
			
			<div class="layui-card-header">描述</div>
			<div class="layui-card-body layui-row layui-col-space10">
				<div class="layui-col-md12">
				  <textarea name="description" placeholder="请输入" class="layui-textarea"></textarea>
				</div>
			</div>
			
			<div class="layui-card-header">点击数</div>
			<div class="layui-card-body layui-row layui-col-space10">
				<div class="layui-col-md12">
				  <input type="text" name='views' autocomplete="off" class="layui-input">
				</div>
			</div>	
			
			<div class="layui-card-header">自定义链接</div>
			<div class="layui-card-body layui-row layui-col-space10">
				<div class="layui-col-md12">
				  <input type="text" name='titleurl' placeholder="留空则系统默认" autocomplete="off" class="layui-input">
				</div>
			</div>				
					
			<div class="layui-card-header">站外链接</div>
			<div class="layui-card-body layui-row layui-col-space10">
				<div class="layui-col-md12">
				  <input type="text" name='link' placeholder="填写将直接跳转到此链接" autocomplete="off" class="layui-input">
				</div>
			</div>		
						
			<div class="layui-card-header">内容模板</div>
			<div class="layui-card-body layui-row layui-col-space10">
				<div class="layui-col-md12">
					<select name="viewtemp">
						<option value="">使用默认内容模板</option>					
						{foreach $viewtemp as $v}
							<option value="{$v.template_id}">{$v.name}</option>                    
						{/foreach}
					</select> 
				</div>
			</div>							
			
			<div class="layui-card-body layui-row layui-col-space10">
				<div class="layui-col-md12">
					<input type="checkbox" name="is_top" value="1"  title="置顶">
					<input type="checkbox" name="is_good" value="1"  title="推荐">
				</div>
			</div>				
			
        </div>

      </div>
    </div>	
	
	<div class="layui-form-item layui-layout-admin" style="margin-top: 30px;">
		<div class="layui-input-block">
		   <div class="layui-footer" style="left: 0;">
			  <button class="layui-btn" type="submit"  lay-filter="component-form-element" onclick="$('#action_type').val('submit')">提交审核</button>
			  <button type="submit" class="layui-btn layui-btn-primary" onclick="$('#action_type').val('draft')">存草稿</button>
			  <button type="button" class="layui-btn layui-btn-primary back">返回</button>
		  </div>
		</div>
	</div> 	
	
</form>

</div>
{include file="info/js"}
</body>
</html>